package Queuedemo;

import java.util.*;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 87111
 * Date: 2025-09-07
 * Time: 18:36
 */
public class Test {
    public static void main(String[] args) {
        //双端队列的顺序实现
        Deque<Integer> deque1 = new ArrayDeque<>();
        //双端队列的链式实现
        Deque<Integer> deque2 = new LinkedList<>();

    }
    public static void main1(String[] args) {
        MyQueue myQueue = new MyQueue();
        myQueue.offer(11);
        myQueue.offer(22);
        myQueue.offer(33);
        System.out.println(myQueue.peek());
        myQueue.poll();
        System.out.println(myQueue.peek());
    }
}
